package com.zlp.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/11 11:51
 */
@RestController//这个错误错一个小时
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping(value = "/payment/zk")
    public String paymentzk()
    {
        return "springcloud with zookeeper: "+serverPort+"\t"+ UUID.randomUUID().toString();
    }
    @RequestMapping(value = "/payment/zk2")
    public String paymentzk2()
    {
        return "222222222222222";
    }

}
